package easycloud.ecs.web.exception;

import org.springframework.core.NestedRuntimeException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@SuppressWarnings("serial")
@ResponseStatus(value = HttpStatus.NOT_FOUND)
public class SessionNotFoundException extends NestedRuntimeException {

	@SuppressWarnings("rawtypes")
	private Class domainClass;

	public SessionNotFoundException(
			@SuppressWarnings("rawtypes") Class domainClass) {
		super(domainClass.toString() + " Not Found In Session");
		this.domainClass = domainClass;
	}

	@SuppressWarnings("rawtypes")
	public Class getDomainClass() {
		return domainClass;
	}

}
